<script>
export default {
	onLaunch: function() {
		let _this = this;
		let token = this.$util.getLocal('token')
		if(token != ''){
			this.$store.commit('setToken',token)
			this.$store.dispatch('getUserInfo')
		}
		uni.getSystemInfo({
			success: res => {
				let modelmes = res.model;
				if (modelmes.search('iPhone X') != -1) {
				  _this.globalData.isIphoneX = true
				}
				// uni.setStorageSync('modelmes', modelmes)
			}
		})
	},
	globalData:{
		isIphoneX: false
	},
	onShow: function() {},
	onHide: function() {},
	methods:{
		shouye(){
			
		}
	}
};
</script>

<style>
	@font-face {
		font-family: uniicons;
		font-weight: normal;
		font-style: normal;
		src: url('~@/static/uni.ttf') format('truetype');
	}
</style>
